 <?php require_once('inc_admin.php'); ?>

	        <!--PAGE CONTENT -->
	        <div id="content">

	            <div class="inner" style="min-height:1200px;">
	                <div class="row">
	                    <div class="col-lg-12">

<?php
	header("Content-type:text/html;charset=utf-8"); 
	include_once('../system/dbConn.php');

	connect();
	
	$typename=trim($_POST['typename']);
		$sql="insert into videotype values (null,'$typename')";
		$result=mysql_query($sql)or die('插入失败！'.mysql_error());
			//判断是否插入成功 
		
			$num=mysql_affected_rows();
			if ($num!=1) {
				echo "添加失败！<br/>";
				echo "返回<a href='doTypeAdd.php'>返回</a>";
			}else{
				echo"添加成功！";
				echo "或返回<a href='typeList.php'>视频类别</a>页面！";
			}
	?>
	            
					      
	   

	                    </div>
	                </div>
              </div>
               </div>
           </div>
	   
	   <!-- FOOTER -->
	    <div id="footer">
	       
	    </div>
	    <!--END FOOTER -->
	     <!-- GLOBAL SCRIPTS -->
	    <script src="assets/plugins/jquery-2.0.3.min.js"></script>
	     <script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
	    <script src="assets/plugins/modernizr-2.6.2-respond-1.1.0.min.js"></script>
	    <!-- END GLOBAL SCRIPTS -->









